package com.app.mapper.authority;

import com.app.entity.Pagination;
import com.app.entity.authority.Role;
import com.app.entity.authority.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StaffMapper {

    List<Staff> getList(@Param("currentItem") Integer currentItem, // Pagination _page,
                        @Param("pageSize") Integer pageSize,

                        @Param("searchName") String searchName,
                        @Param("searchID") String searchID,
                        @Param("orderName") String orderName,
                        @Param("orderKind") String orderKind
    );

    int getListSize(@Param("currentItem") Integer currentItem, // Pagination _page,
                    @Param("pageSize") Integer pageSize,
                    @Param("searchName") String searchName,
                    @Param("searchID") String searchID);

    //删
     Integer DeleteStaffInfo(Staff _staff);

    //增
     Integer insertStaff(Staff _staff);

     Integer InsertRole(Staff _staff);
     Integer deleteRole(@Param("userId") String userId);
     List<Staff> getModifyInfo(Staff _staff);

     //改
    Integer UpdateStaffInfo(Staff _staff);
    //机构树查询
    List<Staff> getInfoByDepartId(String DepartId);

    List<Role> getFormInfo(Staff _staff);

    List<Staff> StaffNumberInfo(Staff _staff);
}
